﻿<%@ Page Title="" Language="C#" MasterPageFile="MemberMaster.Master" AutoEventWireup="true"
    CodeBehind="Message.aspx.cs" Inherits="TopWinCMS.WebUI.Views.TopWinCMS6.Member.Message" %>

<%@ Register Src="~/UserControl/UC_AjaxLoading.ascx" TagName="UC_AjaxLoading" TagPrefix="uc1" %>

<asp:Content ID="Content" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <form id="form1" runat="server">
    <table style="table-layout: fixed; border-collapse: collapse" cellspacing="0" cellpadding="3"
        width="98%" align="center" border="0">
        <tbody>
            <tr>
                <td width="8%" height="32" align="center" background="../Images/demo_53.gif">
                    &nbsp;
                </td>
                <td width="92%" align="center" background="../Images/demo_53.gif">
                    <strong>短信息管理 －－
                        <asp:Label ID="LB_Path" runat="server"></asp:Label>
                    </strong>
                </td>
            </tr>
            <tr>
                <td colspan="2" valign="top" align="center">
                    <a href="Message.aspx?Action=Inbox">
                        <img alt="" src="Images/inbox.gif" /></a> <a href="Message.aspx?Action=Outbox">
                            <img alt="" src="Images/outbox.gif" /></a> <a href="Message.aspx?Action=Trash">
                                <img alt="" src="Images/trash.gif" /></a> <a href="Message_Send.aspx">
                                    <img alt="" src="Images/write.gif" /></a>
                    <asp:ScriptManager ID="ScriptManager1" runat="server">
                    </asp:ScriptManager>
                    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                        <ProgressTemplate>
                            <uc1:UC_AjaxLoading ID="UC_AjaxLoading1" runat="server" />
                        </ProgressTemplate>
                    </asp:UpdateProgress>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" Width="100%"
                                OnRowDataBound="GV_List_RowDataBound"  
                                DataKeyNames="ID" onrowdeleting="GV_List_RowDeleting">
                                <HeaderStyle BackColor="Black" ForeColor="White" />
                                <Columns>
                                    <asp:BoundField DataField="sender" HeaderText="发信人">
                                        <ItemStyle HorizontalAlign="Center" Width="60px" />
                                        <HeaderStyle HorizontalAlign="Center" />
                                    </asp:BoundField>
                                    <asp:HyperLinkField DataNavigateUrlFields="GUID" HeaderText="短信标题" DataNavigateUrlFormatString="Message_Send.aspx?Action=Read&amp;GUID={0}"
                                        DataTextField="title">
                                        <HeaderStyle HorizontalAlign="Center" />
                                    </asp:HyperLinkField>
                                    <asp:BoundField DataField="SendTime" HeaderText="发信时间" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}"
                                        HtmlEncode="False">
                                        <ItemStyle Width="120px" />
                                        <HeaderStyle HorizontalAlign="Center" />
                                    </asp:BoundField>
                                    <asp:TemplateField HeaderText="是否已读">
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("isRead") %>'></asp:TextBox>
                                        </EditItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" Width="60px" />
                                        <HeaderStyle HorizontalAlign="Center" />
                                        <ItemTemplate>
                                            <%# Convert.ToBoolean(Eval("isRead"))==true?"已读":"未读" %>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:HyperLinkField DataNavigateUrlFields="GUID" HeaderText="回复" Text="回复" DataNavigateUrlFormatString="Message_Send.aspx?Action=Reply&amp;GUID={0}">
                                        <ItemStyle HorizontalAlign="Center" Width="60px" />
                                        <HeaderStyle HorizontalAlign="Center" />
                                    </asp:HyperLinkField>
                                  
                                    <asp:CommandField ShowDeleteButton="true" HeaderText="删除"  >   <HeaderStyle Width="60px" />
                                        <ItemStyle HorizontalAlign="Center" /> </asp:CommandField>
                                    
                                    
                                </Columns>
                                <HeaderStyle Font-Bold="True" Font-Size="12px" Height="24px" Wrap="True" />
                                <RowStyle Height="24px" />
                            </asp:GridView>
                            <asp:Label ID="LB_NoShow" runat="server"></asp:Label>&nbsp;
                            <TopWinCMS:PageNavigation ID="PageNavigation1" runat="server" OnPageChanging="PageNavigation1_PageChanging"
                                SubmitButtonClass="btn">
                            </TopWinCMS:PageNavigation>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
            </tr>
        </tbody>
    </table>
    </form>
</asp:Content>
